<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <title>ISeeAdmin 【会员管理】 </title>
    <!--    <link rel="stylesheet" href="/static/element/index.css">-->
    <link href="https://cdn.staticfile.org/element-ui/2.12.0/theme-chalk/index.css" rel="stylesheet">
    <link rel="stylesheet" href="/static/iconfont/iconfont.css">
    <link rel="stylesheet" href="/static/css/common.css">
    <!--    开发环境-->
    <!--        <script src="/static/js/iseeadmin.js"></script>-->
    <!--    正式环境-->
    <script src="/static/js/iseeadmin.min.js"></script>
    <script src="/static/js/menu.js"></script>
    <!--    开发环境-->
    <!--    <script src="/static/js/vue.js"></script>-->
    <!--    正式环境-->
    <!--        <script src="/static/js/vue.min.js"></script>-->
    <script src="https://cdn.staticfile.org/vue/2.6.10/vue.min.js"></script>
    <!--    <script src="/static/element/index.js"></script>-->
    <script src="https://cdn.staticfile.org/element-ui/2.12.0/index.js"></script>
    <!--    <script src="/static/js/axios.min.js"></script>-->
    <style>
        .form-item-width {
            width: 260px;
        }

        .el-select .el-input {
            width: 100px;
        }

        .input-with-select .el-input-group__prepend {
            background-color: #fff;
        }
    </style>
</head>
<body>
<div id="app" v-cloak>
    <el-container style="height: 100%;min-height:100vh;">
        <el-aside v-show="iseeData.asideShow" width="210px">
            <!--            左侧logo 开始-->
            <div class="aside-logo">
                <img class="aside-logo-img" src="/static/images/logo.png"
                     alt=""> ISeeAdmin
            </div>
            <!--            左侧logo 结束-->
            <!--            左侧菜单 开始-->
            <el-menu @select="iseeMenuOpen" style="width: 210px;"
                     unique-opened
                     :default-active="iseeData.defaultActive"
                     background-color="#304156"
                     text-color="#bfcbd9"
                     active-text-color="#409eff">
                <iseemenu :menu="iseeData.menu"></iseemenu>
            </el-menu>
            <!--            左侧菜单 结束-->
        </el-aside>

        <el-container>
            <el-header height="83px">
                <div class="isee-header-div">
                    <!--                    面包屑 开始-->
                    <div style="width: 100%;display: inherit;">
                        <span class="aside-show" @click="iseeAsideShow">
                            <i :class="iseeData.asideShowIcon"></i>
                        </span>

                        <el-breadcrumb style="line-height: 50px" separator="/">
                            <el-breadcrumb-item v-for="(item,index) in iseeData.breadcrumb" :key="index">{{item.title}}
                            </el-breadcrumb-item>
                        </el-breadcrumb>
                    </div>
                    <!--                    面包屑 结束-->
                    <!--                    icon功能列表，可根据需要修改 开始-->
                    <div>
                        <ul class="isee-ul">
                            <li class="isee-li">
                                <i style="font-size: 20px" class="el-icon-bell"></i>
                            </li>
                            <li @click="iseeFullScreen" class="isee-li">
                                <span class="iconfont" style="font-size: 20px" v-html="iseeData.fullscreenIcon"></span>
                            </li>
                            <li class="isee-li" @click="iseeData.drawer = true">
                                <span class="iconfont" style="font-size: 20px">&#xe602;</span>
                            </li>
                        </ul>
                    </div>
                    <!--                    icon功能列表，可根据需要修改 结束-->
                    <!--                    avatar显示 开始-->
                    <div>
                        <el-dropdown @command="iseeOpenUrl">
                              <span class="el-dropdown-link">
                                  <el-avatar style="margin-top: 9px" :size="iseeData.avatar.size"
                                             :src="iseeData.avatar.url"></el-avatar>
                              </span>

                            <el-dropdown-menu slot="dropdown">
                                <el-dropdown-item v-for="(item,index) in iseeData.avatar.list" :icon="item.icon"
                                                  :key="index" :command="index">{{item.title}}
                                </el-dropdown-item>
                            </el-dropdown-menu>
                        </el-dropdown>
                    </div>
                    <!--                    avatar显示 结束-->
                </div>
                <div style="display: flex">
                    <!--                    标签页列表 开始-->
                    <span @click="iseeTagDivMove(1)" class="isee-tag-span">
                        <i class="el-icon-d-arrow-left"></i>
                    </span>
                    <div ref="iseeTagDiv" class="isee-tag-div">
                        <el-tag style="cursor:pointer;margin-right: 5px;" v-for="(item,index) in iseeData.tagList"
                                :key="index"
                                @click="iseeTagSwitch(item.url,item.index,item.breadcrumb)"
                                :effect="item.effect"
                                :type="item.type"
                                @close="iseeTagClose(item.url,index)"
                                size="medium"
                                :closable="item.closable"><i v-show="item.show" class="el-icon-view"></i> {{item.title}}
                        </el-tag>
                    </div>
                    <span @click="iseeTagDivMove(2)" class="isee-tag-span">
                        <i class="el-icon-d-arrow-right"></i>
                    </span>
                    <!--                    标签页列表 结束-->
                    <!--                    标签页集中操作 开始-->
                    <div style="float: right;margin-left: 10px">
                        <el-dropdown @command="iseeTagCommandClose">
                          <span class="el-dropdown-link">
                              <i class="el-icon-arrow-down isee-el-icon-arrow-down"></i>
                          </span>
                            <el-dropdown-menu slot="dropdown">
                                <el-dropdown-item command="1">关闭当前标签页</el-dropdown-item>
                                <el-dropdown-item command="2">关闭其它标签页</el-dropdown-item>
                                <el-dropdown-item command="3">关闭全部标签页</el-dropdown-item>
                            </el-dropdown-menu>
                        </el-dropdown>
                    </div>
                    <!--                    标签页集中操作 结束-->
                </div>

                <!--抽屉式展示-->
                <el-drawer
                        title="iseeAdmin"
                        :visible.sync="iseeData.drawer"
                        :direction="iseeData.direction"
                        :show-close="iseeData.showClose"
                        custom-class="isee-drawer-info"
                >
                    <el-divider></el-divider>
                    <div style="font-size: 14px">
                        <p class="isee-title">版本信息</p>
                        <ul class="isee-drawer-ul">
                            <li>
                                当前版本：iseeAdmin-v{{iseeData.version}}
                            </li>
                            <li>
                                基于框架：vue v2.6.10，element v2.12.0
                            </li>
                            <li>
                                下载地址：
                                <el-link type="primary" :underline="false" href="https://gitee.com/youge/iseeadmin"
                                         target="_blank">码云
                                </el-link>
                                |
                                <el-link type="primary" :underline="false" href="https://github.com/fukedi/iseeadmin"
                                         target="_blank">github
                                </el-link>
                            </li>
                        </ul>
                    </div>
                    <el-divider></el-divider>
                    <div style="font-size: 14px">
                        <p class="isee-title">关于版权</p>
                        <ul class="isee-drawer-ul">
                            <li>
                                iseeAdmin完全开源，可免费使用
                            </li>
                            <li>
                                QQ交流群：927049524
                            </li>
                        </ul>
                    </div>
                </el-drawer>
                <!--抽屉式展示 结束-->
            </el-header>

            <el-main>
                <!--                主内容展示-->
                <div>
                    <el-card class="box-card">
                        <p style="padding: 8px 16px;font-size: 14px;border-radius:4px;border-left: 5px solid #50bfff ">
                            会员管理
                        </p>
                        <el-divider></el-divider>

                        <div style="display: flex;">
                            <div style="width: 80%">
                                <el-button-group>
                                    <el-button round size="mini" type="danger" @click="del" icon="el-icon-delete">删除
                                    </el-button>
                                    <el-button round size="mini" type="primary" @click="add"
                                               icon="el-icon-circle-plus-outline">添加
                                    </el-button>
                                </el-button-group>
                            </div>
                            <div>
                                <el-input size="mini" placeholder="请输入内容" v-model="searchData.searchVal"
                                          class="input-with-select">
                                    <el-select v-model="searchData.searchType" slot="prepend" placeholder="请选择">
                                        <el-option label="用户名" value="1"></el-option>
                                        <el-option label="手机" value="2"></el-option>
                                        <el-option label="邮箱" value="3"></el-option>
                                    </el-select>
                                    <el-button type="primary" @click="search" slot="append"
                                               icon="el-icon-search"></el-button>
                                </el-input>
                            </div>
                        </div>
                    </el-card>
                    <el-card class="box-card">
                        <template>
                            <el-table
                                    ref="multipleTable"
                                    :data="listData.data"
                                    tooltip-effect="dark"
                                    style="width: 100%"
                                    size="mini"
                                    height="360"
                                    @selection-change="rowSelect"
                            >
                                <el-table-column
                                        type="selection"
                                        width="55">
                                </el-table-column>
                                <el-table-column
                                        label="ID"
                                        width="50">
                                    <template slot-scope="scope">{{ scope.row.id }}</template>
                                </el-table-column>
                                <el-table-column
                                        prop="name"
                                        label="用户名"
                                        width="120">
                                </el-table-column>
                                <el-table-column
                                        prop="nickname"
                                        label="昵称"
                                        width="120">
                                </el-table-column>
                                <el-table-column
                                        prop="phone"
                                        label="手机"
                                        width="120">
                                </el-table-column>
                                <el-table-column
                                        prop="email"
                                        label="邮箱"
                                        width="200">
                                </el-table-column>
                                <el-table-column
                                        prop="sexInfo.name"
                                        label="性别"
                                        width="120">
                                </el-table-column>
                                <el-table-column
                                        prop="levelInfo.name"
                                        label="会员等级"
                                        width="120">
                                </el-table-column>
                                <el-table-column
                                        label="会员期限"
                                        width="180">
                                    <template slot-scope="scope">{{ scope.row.time_frame[0] }}~{{
                                        scope.row.time_frame[1] }}
                                    </template>
                                </el-table-column>
                                <el-table-column
                                        prop="ip"
                                        label="IP"
                                        width="120">
                                </el-table-column>
                                <el-table-column
                                        prop="add_time"
                                        label="注册时间"
                                        width="120">
                                </el-table-column>
                                <el-table-column
                                        fixed="right"
                                        label="操作"
                                        width="100">
                                    <template slot-scope="scope">
                                        <el-button @click="show(scope.row,scope.$index)" type="text" size="mini">查看
                                        </el-button>
                                        <el-button @click="edit(scope.row,scope)" type="text" size="mini">编辑</el-button>
                                    </template>
                                </el-table-column>
                            </el-table>
                        </template>
                        <div style="margin: 20px;">
                            <el-pagination
                                    background
                                    @size-change="handleSizeChange"
                                    @current-change="handleCurrentChange"
                                    :current-page="listData.currentPage"
                                    :page-sizes="listData.pageSizes"
                                    :page-size="listData.pageSize"
                                    layout="total, sizes, prev, pager, next, jumper"
                                    :total="listData.total">
                            </el-pagination>
                        </div>
                    </el-card>

                    <el-dialog title="会员信息" :visible.sync="formData.visible" width="450px">
                        <el-form size="mini" :model="formData" :rules="rules" ref="formData" label-width="100px">
                            <el-form-item label="用户名" prop="name">
                                <el-input v-model="formData.name" class="form-item-width">
                                </el-input>
                            </el-form-item>
                            <el-form-item label="昵称" prop="nickname">
                                <el-input v-model="formData.nickname" class="form-item-width">
                                </el-input>
                            </el-form-item>
                            <el-form-item label="手机" prop="phone">
                                <el-input maxlength="11" show-word-limit v-model.number="formData.phone"
                                          class="form-item-width"></el-input>
                            </el-form-item>
                            <el-form-item label="邮箱" prop="email">
                                <el-input v-model="formData.email" class="form-item-width"
                                          placeholder="请输入邮箱"></el-input>
                            </el-form-item>
                            <el-form-item label="性别" prop="sex">
                                <el-radio-group v-model="formData.sex" size="mini">
                                    <el-radio-button label="1">男</el-radio-button>
                                    <el-radio-button label="2">女</el-radio-button>
                                </el-radio-group>
                            </el-form-item>
                            <el-form-item label="会员等级" prop="level">
                                <el-select v-model="formData.level" placeholder="请选择会员等级">
                                    <el-option v-for="(item,index) in formData.levelList" :label="item.name"
                                               :value="item.level"></el-option>
                                </el-select>
                            </el-form-item>
                            <el-form-item label="会员期限" prop="timeFrame">
                                <el-date-picker style="width: 260px"
                                                v-model="formData.timeFrame"
                                                format="yyyy.MM.dd"
                                                value-format="yyyy.MM.dd"
                                                :editable="false"
                                                type="daterange"
                                                size="mini"
                                                range-separator="至"
                                                start-placeholder="开始日期"
                                                end-placeholder="结束日期">
                                </el-date-picker>
                            </el-form-item>
                            <el-form-item>
                                <el-button type="primary" @click="submitForm('formData')">保存</el-button>
                                <el-button @click="resetForm('formData')">重置</el-button>
                            </el-form-item>
                        </el-form>
                    </el-dialog>
                </div>
                <!--                主内容展示 结束-->
            </el-main>
        </el-container>
    </el-container>
</div>


<script>
  const item = [
    {
      id: 1,
      name: 'iseeAdmin',
      nickname: '有蜗壳',
      phone: '1877XXXX107',
      email: '46914685@qq.com',
      sexInfo: {
        id: 1,
        name: '男'
      },
      levelInfo: {
        level: 0,
        name: '普通会员'
      },
      time_frame: [
        '2019.06.16',
        '2020.03.18',
      ],
      ip: '127.0.0.1',
      add_time: '2016-05-02',
    }, {
      id: 2,
      name: 'iseeAdmin',
      nickname: '有蜗壳',
      phone: '1877XXXX107',
      email: '46914685@qq.com',
      sexInfo: {
        id: 2,
        name: '女'
      },
      levelInfo: {
        level: 1,
        name: '黑铁会员'
      },
      time_frame: [
        '2019.05.18',
        '2020.05.18',
      ],
      ip: '127.0.0.1',
      add_time: '2016-05-02',
    }, {
      id: 3,
      name: 'iseeAdmin',
      nickname: '有蜗壳',
      phone: '1877XXXX107',
      email: '46914685@qq.com',
      sexInfo: {
        id: 2,
        name: '女'
      },
      levelInfo: {
        level: 2,
        name: '白银会员'
      },
      time_frame: [
        '2019.05.18',
        '2020.05.18',
      ],
      ip: '127.0.0.1',
      add_time: '2016-05-02',
    }, {
      id: 4,
      name: 'iseeAdmin',
      nickname: '有蜗壳',
      phone: '1877XXXX107',
      email: '46914685@qq.com',
      sexInfo: {
        id: 1,
        name: '男'
      },
      levelInfo: {
        level: 3,
        name: '黄金会员'
      },
      time_frame: [
        '2019.05.18',
        '2020.05.18',
      ],
      ip: '127.0.0.1',
      add_time: '2016-05-02',
    }, {
      id: 5,
      name: 'iseeAdmin',
      nickname: '有蜗壳',
      phone: '1877XXXX107',
      email: '46914685@qq.com',
      sexInfo: {
        id: 1,
        name: '男'
      },
      levelInfo: {
        level: 4,
        name: '铂金会员'
      },
      time_frame: [
        '2019.05.18',
        '2020.05.18',
      ],
      ip: '127.0.0.1',
      add_time: '2016-05-02',
    }, {
      id: 6,
      name: 'iseeAdmin',
      nickname: '有蜗壳',
      phone: '1877XXXX107',
      email: '46914685@qq.com',
      sexInfo: {
        id: 1,
        name: '男'
      },
      levelInfo: {
        level: 5,
        name: '王者会员'
      },
      time_frame: [
        '2019.05.18',
        '2020.05.18',
      ],
      ip: '127.0.0.1',
      add_time: '2016-05-02',
    }, {
      id: 7,
      name: 'iseeAdmin',
      nickname: '有蜗壳',
      phone: '1877XXXX107',
      email: '46914685@qq.com',
      sexInfo: {
        id: 1,
        name: '男'
      },
      levelInfo: {
        level: 0,
        name: '普通会员'
      },
      time_frame: [
        '2019.05.18',
        '2020.05.18',
      ],
      ip: '127.0.0.1',
      add_time: '2016-05-02',
    }, {
      id: 8,
      name: 'iseeAdmin',
      nickname: '有蜗壳',
      phone: '1877XXXX107',
      email: '46914685@qq.com',
      sexInfo: {
        id: 1,
        name: '男'
      },
      levelInfo: {
        level: 0,
        name: '普通会员'
      },
      time_frame: [
        '2019.05.18',
        '2020.05.18',
      ],
      ip: '127.0.0.1',
      add_time: '2016-05-02',
    }, {
      id: 9,
      name: 'iseeAdmin',
      nickname: '有蜗壳',
      phone: '1877XXXX107',
      email: '46914685@qq.com',
      sexInfo: {
        id: 1,
        name: '男'
      },
      levelInfo: {
        level: 0,
        name: '普通会员'
      },
      time_frame: [
        '2019.05.18',
        '2020.05.18',
      ],
      ip: '127.0.0.1',
      add_time: '2016-05-02',
    }, {
      id: 10,
      name: 'iseeAdmin',
      nickname: '有蜗壳',
      phone: '1877XXXX107',
      email: '46914685@qq.com',
      sexInfo: {
        id: 1,
        name: '男'
      },
      levelInfo: {
        level: 0,
        name: '普通会员'
      },
      time_frame: [
        '2019.05.18',
        '2020.05.18',
      ],
      ip: '127.0.0.1',
      add_time: '2016-05-02',
    }, {
      id: 11,
      name: 'iseeAdmin',
      nickname: '有蜗壳',
      phone: '1877XXXX107',
      email: '46914685@qq.com',
      sexInfo: {
        id: 1,
        name: '男'
      },
      levelInfo: {
        level: 0,
        name: '普通会员'
      },
      time_frame: [
        '2019.05.18',
        '2020.05.18',
      ],
      ip: '127.0.0.1',
      add_time: '2016-05-02',
    }, {
      id: 12,
      name: 'iseeAdmin',
      nickname: '有蜗壳',
      phone: '1877XXXX107',
      email: '46914685@qq.com',
      sexInfo: {
        id: 1,
        name: '男'
      },
      levelInfo: {
        level: 0,
        name: '普通会员'
      },
      time_frame: [
        '2019.05.18',
        '2020.05.18',
      ],
      ip: '127.0.0.1',
      add_time: '2016-05-02',
    }, {
      id: 13,
      name: 'iseeAdmin',
      nickname: '有蜗壳',
      phone: '1877XXXX107',
      email: '46914685@qq.com',
      sexInfo: {
        id: 1,
        name: '男'
      },
      levelInfo: {
        level: 0,
        name: '普通会员'
      },
      time_frame: [
        '2019.05.18',
        '2020.05.18',
      ],
      ip: '127.0.0.1',
      add_time: '2016-05-02',
    }, {
      id: 14,
      name: 'iseeAdmin',
      nickname: '有蜗壳',
      phone: '1877XXXX107',
      email: '46914685@qq.com',
      sexInfo: {
        id: 1,
        name: '男'
      },
      levelInfo: {
        level: 0,
        name: '普通会员'
      },
      time_frame: [
        '2019.05.18',
        '2020.05.18',
      ],
      ip: '127.0.0.1',
      add_time: '2016-05-02',
    }, {
      id: 15,
      name: 'iseeAdmin',
      nickname: '有蜗壳',
      phone: '1877XXXX107',
      email: '46914685@qq.com',
      sexInfo: {
        id: 1,
        name: '男'
      },
      levelInfo: {
        level: 0,
        name: '普通会员'
      },
      time_frame: [
        '2019.05.18',
        '2020.05.18',
      ],
      ip: '127.0.0.1',
      add_time: '2016-05-02',
    }, {
      id: 16,
      name: 'iseeAdmin',
      nickname: '有蜗壳',
      phone: '1877XXXX107',
      email: '46914685@qq.com',
      sexInfo: {
        id: 1,
        name: '男'
      },
      levelInfo: {
        level: 0,
        name: '普通会员'
      },
      time_frame: [
        '2019.05.18',
        '2020.05.18',
      ],
      ip: '127.0.0.1',
      add_time: '2016-05-02',
    },
  ];

  const iseeAvatar = {
    url: '/static/images/avatar01.gif',
    size: 32,
    list: [
      {
        index: '',
        indexPath: [],
        icon: 'el-icon-user-solid',
        url: '',
        target: '_self',
        title: 'admin',
      }, {
        index: '6-1-0',
        indexPath: ["6", "6-1", "6-1-0"],
        icon: 'el-icon-tickets',
        url: '/pages/sets/myset/profile.html',
        target: '_self',
        title: '基本资料',
      }, {
        index: '6-1-1',
        indexPath: ["6", "6-1", "6-1-1"],
        icon: 'el-icon-edit-outline',
        url: '/pages/sets/myset/password.html',
        target: '_self',
        title: '修改密码',
      }, {
        index: '',
        indexPath: [],
        icon: 'el-icon-switch-button',
        url: '',
        target: '_self',
        title: '安全退出',
      },
    ]
  }
  var iseemenu = {
    props: ['menu'],
    name: 'iseemenu',
    template: `
    <div>
        <template v-for="item in menu">
            <el-submenu :index="item.index" v-if="item.children.length">
                <template slot="title">
                    <i :class="item.icon"></i>
                    <span slot="title">{{item.title}}</span>
                </template>
                <iseemenu :menu="item.children"></iseemenu>
            </el-submenu>
            <el-menu-item :index="item.index" v-else>
                <i :class="item.icon"></i>
                <span slot="title">{{item.title}}</span>
            </el-menu-item>
        </template>
    </div>`,
  }

  var app = new Vue({
    el: '#app',
    components: {
      iseemenu
    },
    data: {
      iseeData: {
        version: iseeAdmin.version,
        drawer: false,
        direction: 'rtl',
        showClose: false,
        status: false,
        show: true,
        asideShow: iseeAdmin.asideShow,
        asideShowIcon: iseeAdmin.asideShowIcon,
        fullscreen: false,
        fullscreenIcon: '&#xe610;',
        defaultActive: iseeAdmin.defaultActive,
        tagList: iseeAdmin.tagList,
        breadcrumb: iseeAdmin.breadcrumb,
        menu: iseeMenu,
        avatar: iseeAvatar
      },
      /*your data*/
      listData: {
        currentPage: 2,
        pageSize: 20,
        pageSizes: [20, 40, 60, 80, 100],
        total: 600,
        data: item,
      },
      searchData: {
        searchType: '1',
        searchVal: '',
      },
      rowSelected: [],
      formData: {
        id: 0,
        name: 'admin',
        nickname: 'admin1',
        sex: 2,
        phone: null,
        email: '46914685@qq.com',
        levelList: {
          VIP0: {
            level: 0,
            name: '普通会员'
          },
          VIP1: {
            level: 1,
            name: '黑铁会员'
          },
          VIP2: {
            level: 2,
            name: '白银会员'
          },
          VIP3: {
            level: 3,
            name: '黄金会员'
          },
          VIP4: {
            level: 4,
            name: '铂金会员'
          },
          VIP5: {
            level: 5,
            name: '王者会员'
          },
        },
        level: 0,
        timeFrame: [
          '2019.10.08',
          '2019.10.28',
        ],
        visible: false
      },
      rules: {
        name: [
          {required: true, message: '请输入名字', trigger: 'blur'},
          {min: 3, max: 20, message: '长度在 3 到 20 个字符', trigger: 'blur'}
        ],
        nickname: [
          {required: true, message: '请输入昵称', trigger: 'blur'},
          {min: 3, max: 20, message: '长度在 3 到 20 个字符', trigger: 'blur'}
        ],
        phone: [
          {required: true, message: '请输入手机号码', trigger: 'blur'},
          {type: 'number', message: '手机号码必须为数字', trigger: 'blur'},
          {
            validator: function (rule, value, callback) {
              if (/^1[34578]\d{9}$/.test(value) == false) {
                callback(new Error("请输入正确的手机号"));
              } else {
                callback();
              }
            }, trigger: 'blur'
          }
        ],
        email: [
          {required: true, message: '请输入邮箱', trigger: 'blur'},
          {type: 'email', message: '请输入正确的邮箱', trigger: ['blur', 'change']}
        ],
      },
    },
    methods: {
      iseeTagSwitch(url, index, breadcrumb) {
        iseeAdmin.iseeTagSwitch(url, index, breadcrumb, this.iseeData)
      },

      iseeTagClose(url, index) {
        iseeAdmin.iseeTagClose(url, index, this.iseeData)
      },

      iseeTagCommandClose(command) {
        iseeAdmin.iseeTagCommandClose(command, this.iseeData)
      },

      iseeMenuOpen(key, keyPath) {
        iseeAdmin.iseeMenuOpen(key, keyPath, this.iseeData)
      },

      iseeFullScreen() {
        iseeAdmin.iseeFullScreen(this.iseeData)
      },

      iseeAsideShow() {
        iseeAdmin.iseeAsideShow(this.iseeData)
      },
      iseeOpenUrl(command) {
        iseeAdmin.iseeMenuOpen(this.iseeData.avatar.list[command].index, this.iseeData.avatar.list[command].indexPath, this.iseeData)
      },
      iseeTagDivMove(flag) {
        flag == 1 ? this.$refs.iseeTagDiv.scrollLeft += 80 : this.$refs.iseeTagDiv.scrollLeft -= 80
      },
      /*your methods*/
      handleSizeChange(val) {
        console.log(`每页 ${val} 条`);
      },
      handleCurrentChange(val) {
        console.log(`当前页: ${val}`);
      },
      submitForm(formName) {
        this.$refs[formName].validate((valid) => {
          if (valid) {
            this.$message.success('校验通过！可以提交');
            console.log('提交的数据如下')
            console.log(this[formName])
            this[formName].visible = false
            this.$message({
              message: '校验通过！可以提交',
              type: 'success'
            });
          } else {
            this.$message.error('校验不通过！不能提交')
            return false;
          }
        });
      },
      resetForm(formName) {
        this.$refs[formName].resetFields();
      },
      show(row, obj) {
        console.log('查看');
        console.log(row);
        console.log(obj);
        this.formData.id = row.id
        this.formData.name = row.name
        this.formData.email = row.email
        this.formData.level = row.levelInfo.level
        this.formData.nickname = row.nickname
        this.formData.phone = row.phone
        this.formData.sex = row.sexInfo.id
        this.formData.timeFrame = [row.time_frame[0], row.time_frame[1]]

        this.formData.visible = true
      },
      edit(row, obj) {
        console.log('编辑');
        console.log(row);
        console.log(obj);
      },
      search() {
        console.log('当前搜索类型：' + this.searchData.searchType)
        console.log('当前搜索值：' + this.searchData.searchVal)
      },
      rowSelect(rowSelected) {
        console.log('rowSelected')
        console.log(rowSelected)
        this.rowSelected = rowSelected;
      },
      del() {
        let ids = []
        console.log('要删除的ids')
        this.rowSelected.forEach(row => {
          console.log('id:' + row.id)
          ids.push(row.id)
        })
        console.log(ids)
      },
      add() {
        console.log('add')
        this.formData.visible = true
      }

    },
    beforeMount() {
      iseeAdmin.init(this.iseeData)
      /*your beforeMount*/
    },
    mounted() {

    }
  });
</script>
</body>

</html>

